<script charset="utf-8" src="<?=STATIC_PATH?>/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="<?=STATIC_PATH?>/kindeditor/lang/zh_CN.js"></script>
<script>
    KindEditor.ready(function(K) {
        editor1 = K.create('textarea[name="content"]', {
            resizeType : 1,
            uploadJson : '/editorupload/upload',
            items : [
                'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                'insertunorderedlist', '|', 'emoticons', 'image', 'link']
        });
    });

$(document).ready(function(){
    $("#add_box").submit(function(){
        if ($("input[name='title']").val() == '') {
            $.dooDialog.alert("标题必须填写");
            return false;
        }
        if ($("textarea[name='content']").val() == '') {
            $.dooDialog.alert("内容必须填写");
            return false;
        }
    });
});
</script>
    <style>
        .addBox{ }
        .addBox p{ width: 600px;}
        .addBox p label{width: 100px; float: left; text-align: right;}
        .addBox p span{width: 500px;   text-align: left;}
    </style>
<div class="listDiv" style="height:85%; ">
    <form action="/sitemanage/bulletinadd/" id="edit_box" method="post">
        <div class="addBox">

            <p>&nbsp;&nbsp;&nbsp;<strong>编辑公告</strong></p>
            <p>
                <label>标题：</label>
                <span><input type="text" name="title" value=""></span>
            </p>
            <p>
                <label>内容：</label>
                <span></span>
            </p>


        </div>
        <textarea name="content" rows="16" cols="120"><?=$detail['content']?></textarea>
        <p style=" height: 40px; padding-right: 700px;  text-align: right;">
            <label><input type="button" class="button01" onclick="window.location.href='/sitemanage/bulletin/'" value="返回"></label>
            <label><input type="submit" class="button01" value="添加"></label>
        </p>
    </form>
</div>


